package com.tianhao.luo.nouse.v2;

/**
 * 类适配器模式使用继承
 */
class Adapter extends Adaptee implements Target{

    @Override
    public int output5v() {
        int i = super.output220v();
        // ....将电流转换
        // .........
        System.out.println("将原"+i+"电压转化为5v");
        return 5;
    }
}
